﻿using System;
using Check_Printing_Solution;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTestProject
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestZeroPadding()
        {
            PrintChequeEngine pe = new PrintChequeEngine();
            string result = pe.FormatNumber( "50", 10 );
            Assert.AreEqual( "0000000050", result );
        }

        [TestMethod]
        public void TestSpacePadding()
        {
            PrintChequeEngine pe = new PrintChequeEngine();
            string result = pe.FormatNumber( "50", 10, 15 );
            Assert.AreEqual( "     0000000050", result );
        }
    }
}
